#include <REGX52.H>
#include "MatrixLED.h"
#include "Delay.h"
 
typedef unsigned char u8;
 
//????
u8 code Animatioin[] = {0x78,0xFC,0x7E,0x3F,0x7E,0xFC,0x78,0x00,
						0x70,0xF8,0x7C,0x3E,0x7C,0xF8,0x70,0x00,
						0x60,0xF0,0x78,0x3C,0x78,0xF0,0x60,0x00,
						0x40,0xE0,0x70,0x38,0x70,0xE0,0x40,0x00,
						0x78,0xFC,0x7E,0x3F,0x7E,0xFC,0x78,0x00,};
 
void main()
{
	u8 n, offset, count;
	MatrixLED_Init();	
	while(1)
	{
		for(n = 0; n < 8; n++)            //??8?,??8???
		{
			MatrixLED_ShowColumn(n, Animatioin[n + offset]);
		}
		count++;                          //????
		if(count > 10) 					  //??10?,?????
		{
			count = 0;
			offset += 8;				  //??+8,???????
			if(offset > 32)				  //??32????
			{
				offset = 0;
			}
		}	
	}
}